gl renderer: Define debug structs inline
authorTimm Bäder <mail@baedert.org>
Sun, 3 Dec 2017 15:54:34 +0000 (16:54 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 21 Dec 2017 18:12:31 +0000 (19:12 +0100)
gsk/gl/gskglrenderer.c

index 21a3390056aa9ad3316504f1ed9720511ef1412c..5f8fe95ba882edcf5c185f87f4ae3aeb9f066e77 100644 (file)
@@ -122,22 +122,6 @@ static void add_offscreen_ops                 (GskGLRenderer   *self,
                                                GskRenderNode   *child_node,
                                                int             *texture_id,
                                                gboolean        *is_offscreen);
-
-#ifdef G_ENABLE_DEBUG
-typedef struct
-{
-  GQuark frames;
-  GQuark draw_calls;
-} ProfileCounters;
-
-typedef struct
-{
-  GQuark cpu_time;
-  GQuark gpu_time;
-} ProfileTimers;
-#endif
-
-
 typedef enum
 {
   RENDER_FULL,
@@ -181,8 +165,14 @@ struct _GskGLRenderer
   GskGLGlyphCache glyph_cache;
 
 #ifdef G_ENABLE_DEBUG
-  ProfileCounters profile_counters;
-  ProfileTimers profile_timers;
+  struct {
+    GQuark frames;
+    GQuark draw_calls;
+  } profile_counters;
+  struct {
+    GQuark cpu_time;
+    GQuark gpu_time;
+  } profile_timers;
 #endif
 
   RenderMode render_mode;